    package org.fly.dao;

    import org.fly.bean.ProductNorm;
    import org.fly.bean.query.ProductNormQuery;
    import org.apache.ibatis.annotations.Param;
    import org.springframework.stereotype.Repository;

    import java.util.List;

    /**
    * Created by autoCode on 2018-03-07 09:00:48.
    */
    @Repository
    public interface ProductNormDao {

    List<ProductNorm> list(ProductNormQuery query);

    long count(ProductNormQuery query);

    void  insert(ProductNorm data);

    void update(ProductNorm data);

    ProductNorm findById(String id);

    void delete(String id);

    void deleteByProductId(String productId);

    ProductNorm findByProductId(String productId);

    List<ProductNorm> listByIds(@Param(value = "ids") List<String> ids);

    List<ProductNorm> listByProductIds(@Param(value = "ids") List<String> ids);


}
